package com.zonda.autosample;

import com.google.auto.value.AutoValue;

import android.os.Parcelable;

@AutoValue
public abstract class NewsModel implements Parcelable {

  abstract String getPk();

  abstract String getTitle();

  public static NewsModel create(String pk, String title) {
    return new AutoValue_NewsModel(pk, title);
  }

  public static Builder builder() {
    return new AutoValue_NewsModel.Builder();
  }

  @AutoValue.Builder
  abstract static class Builder {
    abstract Builder setPk(String pk);

    abstract Builder setTitle(String title);

    abstract NewsModel build();
  }
}
